package com.att.service.impl;

import com.att.bean.NumRunBean;
import com.att.dao.NumRunDaoMapper;
import com.att.service.NumRunService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("numRunService")
public class NumRunServiceImpl implements NumRunService {

    @Resource
    private NumRunDaoMapper numRunDaoMapper;

    @Override
    public List<NumRunBean> findByCondition(NumRunBean bean) {
        return numRunDaoMapper.findByCondition(bean);
    }
    @Override
    public NumRunBean findById(Integer id) {
        return numRunDaoMapper.findById(id);
    }

    @Override
    public boolean insert(NumRunBean bean) {
        return numRunDaoMapper.insert(bean);
    }

    @Override
    public boolean update(NumRunBean bean) {
        return numRunDaoMapper.update(bean);
    }

    @Override
    public boolean delete(Integer id) {
        return numRunDaoMapper.delete(id);
    }

    @Override
    public boolean deleteSchClassById(Integer id) {
        return numRunDaoMapper.deleteSchClassById(id);
    }

    @Override
    public List<NumRunBean> findNumRunName() {
        return numRunDaoMapper.findNumRunName();
    }

    @Override
    public List<NumRunBean> findNumRunBeanCondition(NumRunBean bean) {
        return numRunDaoMapper.findNumRunBeanCondition(bean);
    }

    @Override
    public long findNumRunBeanCount(NumRunBean bean) {
        return numRunDaoMapper.findNumRunBeanCount(bean);
    }

    @Override
    public List<NumRunBean> findNumRunNameById(NumRunBean bean) {
        return numRunDaoMapper.findNumRunNameById(bean);
    }
}
